using System;
using Game.Network;

namespace Game.Network {
    public class UDPPacketHandlers {
        private static PacketHandler[] m_handlers;
        
        static UDPPacketHandlers () {
            m_handlers = new PacketHandler[0x100];
            
        }
        
        public static void Register( int packetId, int length, OnPacketReceive onReceive){
            m_handlers [packetId] = new PacketHandler (packetId, length, onReceive);
        }
        
        public static PacketHandler GetHandler( int packetId){
            return m_handlers [packetId];
        }
        
        public static void Empty(PacketReader reader){
        }
    }
}

